package com.up.upzl.biz.domain;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

import com.up.upzl.base.domain.BaseDomain;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@Entity
public class SysAccountLoginLog extends BaseDomain {
     
	 /**
	 * 
	 */
	private static final long serialVersionUID = 5047038471317276019L;

	/**
	  *IP
	  */
	 @Column(length = 32)
	 private String ip;
	 
	 /**
	  * 登录地址
	  */
	 @Column(length = 128)
	 private String address;
	 
	 /**
	  * 登录时间
	  */
	 private Date	loginTime;
	 /**
	  * 退出时间
	  */
	 private Date	exitTime;
	 
	 /**
	  * 登录状态 1:成功 0:失败
	  */
		private LoginStatus loginStatus;
		
		public enum LoginStatus{
			失败, 成功
		}
		
	 /**
	  * 系统用户ID
	  */
		@ManyToOne
		@JoinColumn(name = "accountId")
		private SysAccount sysAccount;
	 
	 
}
